package ControlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class SaleCtr_Test.
 * Contains test methods for the Sale controller. 
 *
 * @author  (gruppe 3)
 * 
 */
public class SaleCtr_Test
{
    private ControlLayer.SaleCtr saleCtr1;
    private ControlLayer.StorageCtr storageC2;
    private ControlLayer.PersonCtr personCt1;

    
    
    

    /**
     * Default constructor for test class SaleCtr_Test
     */
    public SaleCtr_Test()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        saleCtr1 = new ControlLayer.SaleCtr();
        storageC2 = new ControlLayer.StorageCtr();
        storageC2.createItem("TestCode", "TestName", "TestType", 100, 0);
        personCt1 = new ControlLayer.PersonCtr();
        personCt1.addCustomer("TestName", "TestAddress", "TestPhone", "TestMail", "1", 0, "TestCvr");
        personCt1.listAllCustomers();
        storageC2.listAllItems();
        personCt1.addEmployee("TestName", "TestAddress", "TestPhone", "TestMail", "TestID");
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }
}
